import request from '@/utils/request'

/**
 * @description: 获取客户图纸列表
 * @param {*} params
 */
export function getCustomerDrawingList(params) {
  return request({
    url: '/customer/draw/list',
    params
  })
}

/**
 * @description: 上传客户图纸
 * @param {*} data
 */
export function addCustomerDrawing(data) {
  return request({
    url: '/customer/draw/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新图纸状态
 * @param {*} data
 */
export function updateDrawingStatus(data) {
  return request({
    url: '/customer/draw/status/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除图纸
 * @param {*} data
 */
export function deleteDrawing(data) {
  return request({
    url: '/customer/draw/delete',
    method: 'post',
    data
  })
}
